﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Models;
using BLL;

namespace CSMF
{
    public partial class indexnews : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                BindNews();
              
            }
        }

        protected void BindNews()
        {
            IList<NewsInfo> pic = NewsInfoManager.GetNewsInfosByTypeIDIndex("2,3");
            rptNews.DataSource = pic;
            rptNews.DataBind();
        }
    }
}
